home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Canadian & World Encyclopedia 1998
/
The Canadian & World Encyclopedia 1998 - Disc 2.iso
/
mac
/
prime_CD
/
pb
/
PROFILE.DIR
/
00039_Script_#startmovie
< prev
next >
Wrap
Text File
|
1997-07-29
|
7KB
|
245 lines
global load_init, menu_on, menusub_on, roll_scripts, current_pm, nav_history, sub_open, cpos, the_leaf, pmroll_list, the_erarolls, improlloverlist
on stopmovie
-- unlinkqts -- debug code remove in final version
if the machinetype = 256 then closeeventq -- close the library
-- put "movie stopped"
if the machinetype < 256 then palfix_stop
global imp_it, iss_vid
set imp_it = 0
set iss_vid = 0
end
on close_issue_text
global issue_text
see_sprite([30,31,32,37,38,39,40,41],false)
set_puppets([39],false)
set issue_text = FALSE
end
on makepath
set the searchpath = []
put the moviepath into mp
set s = mp&"snd"
set m = mp&"moovs"
-- set gr = mp&"gfx"
-- eras path
set er = mp&"ERAS"
if the machinetype < 256 then set sep = ":"
if the machinetype = 256 then set sep = "\"
set er1 = er&sep&"la"
set er2 = er&sep&"vi"
set er3 = er&sep&"gp"
set er4 = er&sep&"ty"
set er5 = er&sep&"ky"
set er6 = er&sep&"td"
set er7 = er&sep&"ad "
set the searchPath = [ the moviepath,s,m,er,er1,er2,er3,er4,er5,er6,er7]
end
on dopm the_pm
global dopm
if voidp(the_pm) then set the_pm = 0
if dopm then
addtohistory(the frame)
cursor 4
-- KF PRS 11/26/96
set temp = the frameLabel
delete the last char of temp
delete the last char of temp
delete the last char of temp
set old_Curr_PM = integer(temp)
--
set current_pm = integer(the_pm)
set tf = "pm,"¤t_pm
set dopm = false
if current_pm < 1 then
if the colordepth > 8 then puppetpalette "pmtop"
go to marker("pmtop")
if the colordepth > 8 then puppetpalette 0
nothing
else
if the moviename <> "profile.dir" then
if the colordepth > 8 then puppettransition 51,02,08
go to "fadeout"
-- sound playfile 1, "00prf.aif"
go to movie "profile.dir"
else
if the colordepth > 8 then
set pmpal = "pal,"&string(current_pm)
-- puppetpalette pmpal
-- tell the stage to puppetpalette pmpal
-- tell the stage to puppettransition 02, 04, 08
end if
soundcheck(current_pm)
-- KF PRS 11/25/96
if the colordepth > 8 then
if the framelabel contains "pmw" then
if current_pm > old_Curr_PM then
puppettransition 02, 4, 32
end if
if current_pm < old_Curr_PM then
puppettransition 01, 4, 32
end if
else
puppettransition 51,02,16
end if
else
end if
-------
go to marker(string(tf))
set_cursors(prof_rolls)
end if
end if
end if
starttimer
cursor 0
end
on clearPMglobals
global iss_vid, sub_open, imp_it
set iss_vid = 0
set imp_it = 0
set sub_open = 0
end
on soundfix
global soundL
if voidp(soundL) then
set soundL to the soundlevel
else
set the soundlevel to soundL
end if
end
on startmovie
starttimer
-- little sound fixer (take out for final release)
soundfix
tell window "textpop.dir" to makelinelist
forget window "textpop.dir"
set the itemdelimiter = ","
if the machinetype = 256 then openeventq -- xobject to trap user events
global gsep,mp
if the machinetype < 256 then
palfix_init
if voidp(gsep) then
set gsep to ":"
set mp to the moviepath
end if
else
if voidp(gsep) then
set gsep to "/"
set mp to the moviepath
end if
end if
-- global gsep
-- if the machinetype = 256 then set gsep to "\"
-- else set gsep to ":"
-- alert "gsep :"& gsep
see_sprite([44,45,46,47],false)
set_puppets([],"off")
clearPMglobals
if voidp(load_init) or load_init = 0 then
preloadmenu
-- move this into start.dir in final version
-- makepath
-- end of searchpath stuff
set menu_on = FALSE
set menusub_on = FALSE
set sub_open = 0
set current_pm = current_pm + integer(0) -- equals don't reset if set
set nav_history = []
global the_rolls,prof_rolls,profover_rolls,profbio_rolls,profiss_rolls, profimps_rolls, biosub_rolls
set prof_rolls = [5,6,7,8,9,10,11,12,13,14,15,16]
set biosub_rolls = [4,5,9,11,12,17,35,36,37,40,41,43,48]
set profover_rolls = [4,7,9,11,12,18,19,48]
set profbio_rolls = [4,5,9,10,11,12,13,17,18,19,40,48]
set profimps_rolls = [4,9,11,12,16,17,21,22,24,25,26,27,28,48]
set profiss_rolls = [4,9,11,12,17,18,19,24,34,35,48]
set impRolloverList = ["doimp(1)": rect(66, 51, 198, 147), "doimp(2)": rect(201, 51, 333, 147), "doimp(3)": rect(341, 51, 473, 147), "doimp(4)": rect(476, 51, 608, 147), "doimp(5)": rect(66, 150, 198, 246), "doimp(6)": rect(201, 150, 333, 246), "doimp(7)": rect(340, 150, 472, 246), "doimp(8)": rect(476, 150, 608, 246), "doimp(9)": rect(66, 249, 198, 345), "doimp(10)": rect(201, 249, 333, 345), "doimp(11)": rect(340, 250, 472, 346), "doimp(12)": rect(476, 249, 608, 345), "doimp(13)": rect(65, 351, 197, 447), "doimp(14)": rect(202, 350, 334, 446), "doimp(15)": rect(339, 350, 471, 446), "doimp(16)": rect(476, 350, 608, 446)]
set load_init = TRUE
end if
set_cursors(prof_rolls)
see_sprite([44,45,46,47],false)
if current_pm <> 0 then dopm(current_pm)
-- hidecontroller
-- put "startmovie "&the timer
sound fadeout 1, 3*60
end
on handcurse tc
if not voidp(tc) then set the cursor of sprite tc = ([the membernum of member "hand", the membernum of member "hand mask"])
end
on cursoroff tc
if not voidp(tc) then set the cursor of sprite tc = 0
end
on waitcursor tc
if not voidp(tc) then set the cursor of sprite tc = 4
else cursor 4
end
on preloadmenu
preLoadMember member "newitems.pct", member "last era pic"
end
on dirfaq
open window "faq.dir"
end
on create_textpop
movewindow window "textpop.dir", -1000, -1000,false
set the visible of window "textpop.dir" = false
end
on hide_textpop
set sub_open = 0
if string(the windowlist) contains "textp" then
movewindow window "textpop.dir" , -1000, -1000, false
set the visible of window "textpop.dir" = false
tell the stage to set the cursor of sprite 18 to [member "hand", member "hand mask"]
tell the stage to set the cursor of sprite 19 to [member "hand", member "hand mask"]
global glossontop
set glossontop to false
end if
end